#define _CRT_SECURE_NO_WARNINGS 1

//字符串

#include<stdio.h>
#include<string.h>

int main()
{
    printf("%c \n", 120);
    printf("%c \n", 'x');

    int i = 0;
    for (i = 32; i <= 127; i++)
    {
        printf("%c ", i);
    }

    printf("\n");

    printf("%s \n", "abcdefg");
    //字符串末尾隐藏一个‘\0’作为结束标志符。

    char arr1[] = "abcdefg";
    char arr2[] = { 'a','b','c','d','e','f','g' };
    char arr3[] = { 'a','b','c','d','e','f','g','\0' };
    printf("%s \n", arr1);
    printf("%s \n", arr2);
    printf("%s \n", arr3);

    //strlen(); 求字符串长度（\0之前）
    int len = strlen("\test\abc\181\bit.c");
    printf("%d \n", len);

    return 0;
}